package com.beone.smart.smartBeauty.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 商品
 */
@Data
@TableName(value = "goods")
public class GoodsDO {
    //记录的主键id
    private String id;
    /**
     * 展示首图url
     */
    private String imgUrl;
    /**
     * 商品标题
     */
    private String title;
    /**
     * 描述内容
     */
    private String content;
    /**
     * 单价
     */
    private double price;
    /**
     * 库存
     */
    private int inventory;
    /**
     * 新建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createDate;
}
